package com.studentmanagement.service;

import com.our.learning.infrastructure.po.Clazz;
import com.our.learning.infrastructure.pojo.Response;
import org.springframework.stereotype.Service;

/**
 * 实现有关班级的功能
 *
 * @author hexujie
 * @date 2023-06-20 23:15
 */
@Service
public interface ClassService {
    /**
     * 创建班级
     *
     * @param clazz
     * @return
     */
    Response createClass(Clazz clazz);

    /**
     * 修改班级信息
     *
     * @param clazz
     * @return
     */
    Response modifyClass(Clazz clazz);

    Response classList(Integer classId);

    /**
     * 添加学生到班级
     *
     * @param stuId
     * @param classId
     * @return
     */
    Response addStudentToClass(Integer stuId, Integer classId);

    /**
     * 从班级中删除学生
     *
     * @param stuId
     * @param classId
     * @return
     */
    Response removeStudentFromClass(Integer stuId, Integer classId);
}
